package org.nuonuo.sdk.callback;



/**
 * @Version 1.0
 * @Author az
 * @Date 2024-04-12 10:12:33
 * @ClassName Callback
 * @Description
 */
@FunctionalInterface
public interface Callback {
    void accept();

    /**
     * 函数执行
     *
     * @param callback
     */
    static void execute(Callback callback) {
        if (callback != null) callback.accept();
    }
}
